new Vue({
    el:"#app",
    data:{
        person:{},
        powers:[],
        index:""
    },
    created(){
        this.getAll();
    },
    methods:{
        getAll(){
            this.person = JSON.parse(sessionStorage.person);
            axios.get(`http://localhost:9999/power/returnOnePowerListTree/${this.person.perId}`)
            .then(response=>{
                this.powers = response.data.data
            })
        },
        unique(i){
            this.index = i
        }
    }
})